<?php
/**
 *
 * Show the product details page
 *
 * @package	VirtueMart
 * @subpackage
 * @author Max Milbers, Eugen Stranz
 * @author RolandD,
 * @todo handle child products
 * @link http://www.virtuemart.net
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * @version $Id: default.php 3605 2011-07-04 10:23:23Z Milbo $
 */

// Check to ensure this file is included in Joomla!
defined ( '_JEXEC' ) or die ( 'Restricted access' );

// addon for joomla modal Box
			if (isset($this->type)) {
			$document = JFactory::getDocument();
			$document->setTitle($this->product->product_name);
			$document->setName($this->product->product_name);
			$document->setDescription( $this->product->product_s_desc);
			}


/* Let's see if we found the product */
if (empty ( $this->product )) {
	echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' );
	echo '<br /><br />  ' . $this->continue_link_html;
	return;
	
	
	
}


$printL = JRequest::getVar('print', 0);
$document = JFactory::getDocument();

if($printL):
	$document->addScriptDeclaration("
	//<![CDATA[
		jQuery(document).ready(function($) {
			window.print();
	
		});
	//]]>
	");
endif;



?>

<div class="pdf_logo"><img src="templates/bkm/images/logo.png" style="width:500px" /></div>


<div class="productdetails-view">

	<h1 style="color:#C2001A;"><?php echo $this->product->product_name ?></h1>
	<h2><?php echo JText::_('COM_VIRTUEMART_ARTNRM') ?>: <?php echo $this->product->product_sku ?></h2>

	<?php // Showing The Additional Images
/*	if(!empty($this->product->images) && count($this->product->images)>0) {
	
		echo $this->product->images[0]->displayMediaFull('class="product-image"',false); 
		*/
		?>
		<img src="../../brinkmanfiles/images_catalog/product/<?php echo $this->product->product_sku; ?>.jpg" style="width:1200px;" />
	<?php //}   ?>

	<?php // Product Short Description
	if (!empty($this->product->product_s_desc)) { ?>
	<div class="product-short-description">
		<?php /** @todo Test if content plugins modify the product description */
		echo $this->product->product_s_desc; ?>
	</div>
	<?php } // Product Short Description END ?>

	<div>


		
		</div>
	<div class="clear"></div>
	</div>

	<?php // Product Description
	if (!empty($this->product->product_desc)) { ?>
	<div class="product-description">
		<?php /** @todo Test if content plugins modify the product description */ ?>
		<h2 class="title"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></h2>
		<?php echo $this->product->product_desc; ?>
	</div>
	<?php } // Product Description END ?>
	
	<?php // Product Packaging
	$product_packaging = '';
	if ($this->product->product_box) { ?>
	<div class="product-box">
		<?php
	        echo JText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') .$this->product->product_box;
	    ?>
	</div>
	<?php } // Product Packaging END ?>

<br />
<br /><br /><br />
<img src="templates/bkm/images/logo_pdf_bottom.png" style="width:500px; float:right" />
	</div>